//package com.niiwoo.civet.trade.service.local.newRefund.notify.mq;
//
//import com.niiwoo.asset.huijie.dto.mq.HuijieOrderStatusChangedDTO;
//import com.niiwoo.asset.huijie.enums.HuijieOrderProjectSubStatusEnum;
//import com.niiwoo.asset.huijie.enums.HuijieOrderStatusEnum;
//import com.niiwoo.civet.trade.dao.entity.Project;
//import com.niiwoo.civet.trade.service.local.newRefund.notify.dto.RefundNotifyDTO;
//import com.niiwoo.civet.trade.service.local.newRefund.notify.enums.RefundNotifyEnum;
//import org.springframework.stereotype.Component;
//
//import java.util.Date;
//
///**
// * 汇介标的状态变更MQ通知
// *
// * 触发条件：标的逾期、标的结清、标的逾期到正常还款
// *
// * @author: daizhiyue
// * @version 1.0.0
// */
//@Component
//public class HuijieProjectStatusChangeNotify extends MQRefundNotify {
//
//	@Override
//	public Object bulidParam(RefundNotifyDTO refundNotifyDTO) {
//		Project project = refundNotifyDTO.getProject();
//		HuijieOrderProjectSubStatusEnum huijieOrderProjectSubStatusEnum = HuijieOrderProjectSubStatusEnum.enumOf(project.getSubStatus());
//		HuijieOrderStatusEnum huijieOrderStatusEnum = HuijieOrderStatusEnum.enumOf(project.getStatus());
//		HuijieOrderStatusChangedDTO huijieOrderStatusChangedDTO = new HuijieOrderStatusChangedDTO();
//		huijieOrderStatusChangedDTO.setProjectId(project.getProjectId());
//		huijieOrderStatusChangedDTO.setHuijieOrderProjectSubStatusEnum(huijieOrderProjectSubStatusEnum);
//		huijieOrderStatusChangedDTO.setHuijieOrderStatusEnum(huijieOrderStatusEnum);
//		huijieOrderStatusChangedDTO.setReason(huijieOrderProjectSubStatusEnum.getDesc());
//		huijieOrderStatusChangedDTO.setUpdateDate(new Date());
//		return huijieOrderStatusChangedDTO;
//	}
//
//	@Override
//	public RefundNotifyEnum getType() {
//		return RefundNotifyEnum.Huijie_PROJECT_STATUS_CHANGE;
//	}
//}